//
//  FontSizeSliderTableViewCell.swift
//  V2ex-Swift
//
//  Created by huangfeng on 3/10/16.
//  Copyright © 2016 Fin. All rights reserved.
//

import UIKit

class FontSizeSliderTableViewCell: UITableViewCell {

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier);
        self.setup();
    }
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    func setup() {
        self.selectionStyle = .none
        
        let leftLabel = UILabel()
        leftLabel.font = v2Font(14 * 0.8)
        leftLabel.text = "A"
        leftLabel.textAlignment = .center
        self.contentView.addSubview(leftLabel)
        leftLabel.snp.makeConstraints{ (make) -> Void in
            make.centerY.equalTo(self.contentView)
            make.width.height.equalTo(30)
            make.left.equalTo(self.contentView)
        }
        
        let rightLabel = UILabel()
        rightLabel.font = v2Font(14 * 1.6)
        rightLabel.text = "A"
        rightLabel.textAlignment = .center
        self.contentView.addSubview(rightLabel)
        rightLabel.snp.makeConstraints{ (make) -> Void in
            make.centerY.equalTo(self.contentView)
            make.width.height.equalTo(30)
            make.right.equalTo(self.contentView)
        }
        
    }
}
